﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PI_CS_Tools;

namespace  PI_CS_Library.Virtual_Network_Information_Model
{
    public class CTP
    {
        protected Identification _id;
        protected Direction _dir;
        int _portNr;
        string _label;

        public CTP(int _portNr, Direction _dir)
        {
            _id = new Identification("CTP:");
            this._dir = _dir;
            this._portNr = _portNr;
        }

        public Identification Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public int PortNr
        {
            get { return _portNr; }
            set { _portNr = value; }
        }

        public string Label
        {
            get { return _label; }
            set { _label = value; }
        }

        public Direction Dir
        {
            get { return _dir; }
            set { _dir = value; }
        }

        public override string ToString()
        {
            return _id.ToString();
        }

    }

    public enum Direction
    {
        Source,
        Sink,
        SourceSink
    }

}
